<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8"/>
    <title>修改订单</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta name="description" content=""/>
    <meta name="author" content=""/>

    <script th:src="@{/static/jquery-1.7.2.js}" type="text/javascript"></script>

</head>
<body class="">


<div class="sidebar-nav">
    <a href="#dashboard-menu" class="nav-header" data-toggle="collapse"><i class="icon-dashboard"></i>订单管理</a>

    <ul>
        <li><a href="/addOrder">新增订单</a></li>
        <li><a href="/queryOrder">查询订单</a></li>
    </ul>


</div>


<div class="content">


    <form id="tab" action="/modifyOrder" method="post">
        <div>
            <label>订单编号</label>
            <input type="text" name="orderId" th:value="${order.orderId}" class="" required="true" readonly="true"/>

            <label>商品ID</label>
            <input type="text" name="goodsId" th:value="${order.goodsId}"  class="" required="true"/>


            <label>商品数量</label>
            <input type="text" name="number" th:value="${order.number}"  class="" required="true"/>


            <label>金额</label>
            <input type="text" name="price"  th:value="${order.price}" class="" required="true"/>

            <label>用户ID</label>
            <select name="userId"   class="">
                <option value="">请选择</option>
                <option th:selected="${order.userId} == 'A0' " value="A0">A0</option>
                <option th:selected="${order.userId} == 'A1' " value="A1">A1</option>
            </select>
            <br/>
            <label>用户名</label>
            <input type="text" name="userName"  th:value="${order.userName}" class="" />

        </div>
        <div class="">
            <button class="" type="submit">保存</button>
             <button type="reset">重置</button>

        </div>
    </form>
</div>


</body>
</html>


